package com.lagou.base;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;
import java.rmi.server.ServerCloneException;

public class BaseServlet extends HttpServlet {
    protected void doGet(HttpServletRequest req , HttpServletResponse resp) throws ServletException, IOException{
        try{
            resp.setContentType("text/html;charset=utf-8");
            String methodName =req.getParameter("methodName");
            if (methodName!=null){
                Class c=this.getClass();
                try{
                    String methodNam = null;
                    Method method=c.getMethod(methodNam, HttpServletRequest.class,HttpServletResponse.class);
                }catch (Exception e){
                    System.out.println("请求的功能不存在！！");
                }
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
